/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.data.entity;

import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import com.thinkgem.jeesite.modules.hk.sys.entity.goods.HkGoods;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;
import java.util.Date;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 广告日志Entity
 * @author 罗天文
 * @version 2018-03-20
 */
public class HkAdvGoodsLog extends DataEntity<HkAdvGoodsLog> {
	
	private static final long serialVersionUID = 1L;
	private HkAllAdv adv;		// 广告
	private HkGoods goods;		// 物品
	private String num;		// 数量
	private User user;		// 用户
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public HkAdvGoodsLog() {
		super();
	}

	public HkAdvGoodsLog(String id){
		super(id);
	}

	public HkAllAdv getAdv() {
		return adv;
	}

	public void setAdv(HkAllAdv adv) {
		this.adv = adv;
	}
	
	public HkGoods getGoods() {
		return goods;
	}

	public void setGoods(HkGoods goods) {
		this.goods = goods;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
}